import typescript from '@rollup/plugin-typescript';
import { nodeResolve } from '@rollup/plugin-node-resolve';
import {terser} from "rollup-plugin-terser";

export default {
    input: 'src/core.ts',
    output: {
        file: 'dist/hl-error-report-sdk.js',
        format: 'umd',
        name: 'HlErrorReportSDK',
        sourcemap: false
    },
    plugins: [
        nodeResolve(),
        terser(),
        typescript({
            tsconfig: './tsconfig.json',
            exclude: ['node_modules']
        })
    ]
};
